package com.mimiwang.animal.service;

import com.github.pagehelper.PageInfo;
import com.mimiwang.animal.vo.AnimalInfoVo;
import com.mimiwang.common.entity.school.School;
import com.mimiwang.common.entity.school.SchoolArea;
import com.mimiwang.common.entity.school.SchoolCampus;
import com.mimiwang.common.vo.school.PageConfig;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @AUTHOR:游李滨
 * @DATE:2023/4/18 14:05
 */
public interface IAnimalService {

    PageInfo<AnimalInfoVo> selectAllAnimal(PageConfig pageConfig);
    AnimalInfoVo selectAnimalById(long id);
    PageInfo<AnimalInfoVo> selectAnimalListBySchool(long schoolId, long  campusId,long areaId ,PageConfig pageConfig);
    int selectAnimalNumBySchool(School school,SchoolCampus campus);
    List<Object> selectAnimalListByRedisKey(String  key);
    List<AnimalInfoVo> selectAroundAnimalList(String ip);
}
